// 用户相关的state数据
const defaultState = {
    userId: ''
}

const userReducer = (state = defaultState, action) => {
    if (action.type == 'updateUserInfo') {
        return {
            ...state,
            userId: action.payload
        }
    }

    return state
}

export default userReducer


